package com.yc.cloud.sms.request;

import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;


/**
 * @title: SendSmsParam
 * @Author JackGu
 * @Date: 2022/10/14 13:31
 * @Version 1.0
 */
@Data
public class SmsEmailParam {

    @Email(message = "发送者邮件格式不正确")
    private String from;

    @NotEmpty(message = "接收者邮件不能为空")
    @Email(message = "发送者邮件格式不正确")
    private String to;

    @NotEmpty(message = "主题不能为空")
    private String subject;

    @NotEmpty(message = "内容不能为空")
    private String content;
}
